import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    redirect:'/home'
  },
  {
    path: '/home',
    name: 'home',
    component: Home
  },
  {
    path:'/shop',
    name:'shop',
    component:()=>
      import('../views/Shop.vue')
    
  },
  {
    path:'/zhifu',
    name:'zhifu',
    component:()=>
      import('../views/ZhiFu.vue')
    
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
